package code03_选择结构;

import java.util.Scanner;

public class Test04_嵌套if结构 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		// int today = 7;
		// String weather = "雨天"; // 字符串常量

		System.out.print("请输入星期几（1-7）：");
		int today = input.nextInt();
		System.out.print("请输入天气：");
		String weather = input.next();

		if (today <= 5) {
			System.out.println("今天要上课，心情很沉重！");
		} else {
			// if(weather=="晴天"){
			if (weather.equals("晴天")) { // 判断字符串是否相等时需要使用.equals()方法
				System.out.println("爬山");
			} else if (weather.equals("雪天")) {
				System.out.println("滑雪");
			} else {
				System.out.println("躺尸");
			}
		}
	}
}
